import re
# 数量词

a = 'pytho*pythonn*python1111java \t &6__78php'
# 默认贪婪
r = re.findall('[a-z]{3,6}', a)
# print(r)

# 非贪婪  ?
r2 = re.findall('[a-z]{3,6}?', a)
# print(r2)

# * 匹配0次以上
r3 = re.findall('python*', a)
print(r3)
# + 匹配1次以上
r4 = re.findall('python+', a)
print(r4)
# ? 匹配0次或1次
r5 = re.findall('python?', a)
print(r5)
